/**
 * 开发任务优先级常量定义
 */

// 优先级枚举：1:高 2:中 3:低
export enum MISSION_PRIORITY {
  HIGH = 1,
  MEDIUM = 2,
  LOW = 3
}

// 优先级列表
export const MISSION_PRIORITY_LIST = [
  {
    value: MISSION_PRIORITY.HIGH,
    label: '高',
    type: 'danger'
  },
  {
    value: MISSION_PRIORITY.MEDIUM,
    label: '中',
    type: 'warning'
  },
  {
    value: MISSION_PRIORITY.LOW,
    label: '低',
    type: 'info'
  }
];

// 优先级映射
export const MISSION_PRIORITY_MAP = MISSION_PRIORITY_LIST.reduce((acc, item) => {
  acc[item.value] = item;
  return acc;
}, {});

// 优先级名称映射
export const MISSION_PRIORITY_NAMES = MISSION_PRIORITY_LIST.reduce((acc, item) => {
  acc[item.value] = item.label;
  return acc;
}, {});
